import {defineConfig} from 'vitepress'
// https://vitepress.dev/reference/site-config
export default defineConfig({
    lang: 'zh-CN',
    head: [['link', { rel: 'icon', href: '/favicon.ico' }]],
    title: "全栈开发+VX: treeroot__",
    description: "一个籍籍无名的全栈开发者...",
    themeConfig: {
        // https://vitepress.dev/reference/default-theme-config
        nav: [
            {text: '首页', link: '/'},
            {text: '项目', link: '/src/projects'},
            {text: '在线简历', link: '/src/resume'},
            {text: "简历附件", link: 'http://47.100.2.86/%E8%AE%B8%E6%A0%B9%E9%93%B6%E7%AE%80%E5%8E%8624-11-27.pdf'}
        ],
        // footer: {
        //     // 显示的版权信息
        //     message: 'Released under the <a href="https://gitee.com/xu-genyin/self-server-vitepress/blob/master/LICENSE">Apache-2.0 License</a>.',
        //     // 实际的版权文本
        //     copyright: 'Copyright © 2024-present <a href="https://gitee.com/xu-genyin">许根银</a>'
        // },
        //  侧边栏
        sidebar: {
            '/src/projects/': [
                {   //可折叠
                    collapsed: false,
                    //组
                    text: '项目经历(全部)',
                    link: '/src/projects/',
                    //组下的子项
                    items: [
                        {text: '物联网本地边缘安卓服务器', link: '/src/projects/Proton'},
                        {text: '物联网仓储租户平台', link: '/src/projects/AtomCloud'},
                        {text: '实体无人零售店', link: '/src/projects/UnmannedRetail/index.md'},
                        {text: '基于FFMPEG的USB相机驱动', link: '/src/projects/FFMPEG-USB'},
                        {text: '基于物联网的人货鉴别算法Demo', link: '/src/projects/UnmanCamera'},
                        {text: 'DocuHub（公司内部wiki平台）', link: '/src/projects/DocuHub'},
                        {text: '物联网叉车传感系统', link: '/src/projects/ForkliftScale'},
                        {text: 'Starbucks门店维护脚本', link: '/src/projects/StarbucksPy'},
                    ],

                }
            ],
        },
        //顶部图标
        socialLinks: [
            {icon: "github", link: 'https://gitee.com/xu-genyin'}
        ],
        /**
         * 路由映射器
         * for example：
         * rewrites:{
         * 'packages/pkg-a/src/pkg-a-docs.md':'/pkg-a-docs/index.html',
         * 'packages/pkg-b/src/pkg-b-docs.md':'/pkg-b-docs/index.html',
         *  简化很多包，基于约定的目录结构
         * 'packages/:pkg/src/(.*)': ':pkg/index.md'
         */
        rewrites: {
            //

        }
    }
})
